package com.henry.kadan;

/*import com.wzg.xls.tools.annotation.ExcelEntity;
import com.wzg.xls.tools.annotation.ExcelProperty;*/

import com.tools.hry.xls.analysis.annotation.ExcelEntity;
import com.tools.hry.xls.analysis.annotation.ExcelProperty;

import java.io.Serializable;

/**
 * Created by liaowuhen on 2018/1/2.
 */
//
@ExcelEntity(setThrowExceptionNum = Integer.MAX_VALUE, rule = BrokerDataExcelCheckRule.class)
public class BrokerDataExcel implements Serializable {

    public static final String SERIALNUMBER = "序号";
    public static final String ISSUETIME = "出单时间";
    public static final String TYPENAME = "险种名称";
    public static final String COMPANY = "保险公司";
    public static final String POLICYNUM = "保险单号";
    public static final String POLICYHOLDER = "投保人";
    public static final String INSURANT = "被保险人";
    public static final String EFFECTTIME = "起保时间";
    public static final String INVALIDTIME = "终保时间";
    public static final String PREMIUM = "保险费";
    public static final String SERVICECHARGE = "手续费";
    public static final String PAYMENTMETHOD = "缴费方式"; //"责任代码";
    public static final String SOURCEOFCHANNEL = "渠道来源"; //"责任名称";
    public static final String IMPORTTYPE = "导入类型";

    @ExcelProperty(value = SERIALNUMBER, required = true)
    private String serialNumber;
    @ExcelProperty(value = ISSUETIME, required = true, regexp = "^\\d{4}(\\-|\\/|\\.)\\d{1,2}\\1\\d{1,2} 00:00:00$|^\\d{4}(\\-|\\/|\\.)\\d{1,2}\\1\\d{1,2}$|\\d{4}-\\d{1,2}-\\d{1,2}", regexpErrorMessage = "非时间类型")
    private String issueTime;
    @ExcelProperty(value = TYPENAME, required = true)
    private String typeName;
    @ExcelProperty(value = COMPANY, required = true)
    private String company;
    @ExcelProperty(value = POLICYNUM, required = true)
    private String policyNum;
    @ExcelProperty(value = POLICYHOLDER, required = true)
    private String policyHolder;
    @ExcelProperty(value = INSURANT, required = true)
    private String insurant;

    @ExcelProperty(value = EFFECTTIME, required = true, regexp = "^\\d{4}(\\-|\\/|\\.)\\d{1,2}\\1\\d{1,2} 00:00:00$|^\\d{4}(\\-|\\/|\\.)\\d{1,2}\\1\\d{1,2}$|\\d{4}-\\d{1,2}-\\d{1,2}", regexpErrorMessage = "非时间类型")
    private String effectTime;
    @ExcelProperty(value = INVALIDTIME, required = true, regexp = "^\\d{4}(\\-|\\/|\\.)\\d{1,2}\\1\\d{1,2} 00:00:00$|^\\d{4}(\\-|\\/|\\.)\\d{1,2}\\1\\d{1,2}$|\\d{4}-\\d{1,2}-\\d{1,2}", regexpErrorMessage = "非时间类型")
    private String invalidTime;
    @ExcelProperty(value = PREMIUM, required = true, regexp = "^[-+]?[0-9]*\\.?[0-9]+$", regexpErrorMessage = "非金额数据类型")
    private String premium;

    @ExcelProperty(value = PAYMENTMETHOD)
    private String paymentMethod;

    @ExcelProperty(value = SOURCEOFCHANNEL, required = true)
    private String sourceOfChannel;
    @ExcelProperty(value = SERVICECHARGE, required = true, regexp = "^[-+]?[0-9]*\\.?[0-9]+$", regexpErrorMessage = "非金额数据类型")
    private String serviceCharge;
    @ExcelProperty(value = IMPORTTYPE, required = true)
    private String importType;


    public String getIssueTime() {
        return issueTime;
    }

    public void setIssueTime(String issueTime) {
        this.issueTime = issueTime;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getPolicyNum() {
        return policyNum;
    }

    public void setPolicyNum(String policyNum) {
        this.policyNum = policyNum;
    }

    public String getPolicyHolder() {
        return policyHolder;
    }

    public void setPolicyHolder(String policyHolder) {
        this.policyHolder = policyHolder;
    }

    public String getInsurant() {
        return insurant;
    }

    public void setInsurant(String insurant) {
        this.insurant = insurant;
    }

    public String getEffectTime() {
        return effectTime;
    }

    public void setEffectTime(String effectTime) {
        this.effectTime = effectTime;
    }

    public String getInvalidTime() {
        return invalidTime;
    }

    public void setInvalidTime(String invalidTime) {
        this.invalidTime = invalidTime;
    }

    public String getPremium() {
        return premium;
    }

    public void setPremium(String premium) {
        this.premium = premium;
    }

    public String getPremiumNum() {
        return premium;
    }

    public String getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(String paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    public String getSourceOfChannel() {
        return sourceOfChannel;
    }

    public void setSourceOfChannel(String sourceOfChannel) {
        this.sourceOfChannel = sourceOfChannel;
    }


    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public String getServiceCharge() {
        return serviceCharge;
    }

    public void setServiceCharge(String serviceCharge) {
        this.serviceCharge = serviceCharge;
    }

    public String getImportType() {
        return importType;
    }

    public void setImportType(String importType) {
        this.importType = importType;
    }
}
